﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace FZF.Common.WinUI
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            if (args.Length > 0)
            {
                //LoginByParams(args);
            }
            else
            {
                LoginNormal();
            }
        }
        private static void LoginNormal()
        {
            SplashScreen.Splasher.Show(typeof(SplashScreen.frmSplash));

            frmMain f = new frmMain();
            f.StartPosition = FormStartPosition.CenterScreen;

            //Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
            Application.Run(f);
        }
    }
}
